home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / proto212.zip / EXAMPLE.ZIP / XSYS.NAH < prev    next >
Text File  |  1992-01-19  |  3KB  |  125 lines

  1. /*~14/03/91 00.10.22! xsys_init N */
  2. /*
  3.     Initialise subsystem XSYS.
  4.     This function is called once.
  5.     bla bla bla.
  6.     Return -1 if not successfull
  7. */
  8. int xsys_init(
  9.     int memsize)    /* Amount of memory allocated to xsys */
  10.  
  11. /*~14/03/91 00.10.22! xsys_end N */
  12. /*
  13.     Terminate use of subsystem XSYS.
  14.     This function frees all buffers and completes any pending operation.
  15.     After it has been called, xsys_init may be call again.
  16. */
  17. void xsys_end(
  18.     void)
  19.  
  20. /*~14/03/91 00.11.00! xsys_transact N */
  21. /*
  22.     Perform one transaction interactivly.
  23.     The function returns only when transaction is secure.
  24. */
  25. int xsys_transact(
  26.     void)
  27.  
  28. /*~14/03/91 00.11.00! xsys_undo N */
  29. /*
  30.     Undo the last transaction.
  31.     This function must be called only in this and this and this
  32.     situation.
  33.     Return -1 if transaction can't be undone.
  34. */
  35. int xsys_undo(
  36.     void)
  37.  
  38. /*~14/03/91 00.12.10! xsys_batch N */
  39. /*
  40.     Perform one transaction without prompting the user.
  41.     This function assumed a yes to each questions.
  42.     The function returns immediatly without waiting for
  43.     the background process to fully complete the transaction. See
  44.     function xsys_flush().
  45. */
  46. int xsys_batch(
  47.     void)
  48.  
  49. /*~14/03/91 00.12.10! xsys_flush N */
  50. /*
  51.     Complete any pending transactions.
  52.     This function must be called only in this and this and this
  53.     situation.
  54.     Return the number of transactions that has been completed.
  55. */
  56. int xsys_flush(
  57.     void)
  58.  
  59. /*~23/03/91 15.36.24! xsys_init R */
  60. /*
  61.     Initialise subsystem XSYS.
  62.     This function is called once.
  63.     bla bla bla.
  64.  
  65.     Return -1 if not successfull
  66. */
  67. int xsys_init(
  68.     int memsize)    /* Amount of memory allocated to xsys */
  69.  
  70. /*~23/03/91 15.36.24! xsys_end R */
  71. /*
  72.     Terminate use of subsystem XSYS.
  73.  
  74.     This function frees all buffers and completes any pending operation.
  75.     After it has been called, xsys_init may be call again.
  76. */
  77. void xsys_end(
  78.     void)
  79.  
  80. /*~23/03/91 15.36.56! xsys_transact R */
  81. /*
  82.     Perform one transaction interactivly.
  83.  
  84.     The function returns only when transaction is secure.
  85. */
  86. int xsys_transact(
  87.     void)
  88.  
  89. /*~23/03/91 15.36.56! xsys_undo R */
  90. /*
  91.     Undo the last transaction.
  92.  
  93.     This function must be called only in this and this and this
  94.     situation.
  95.  
  96.     Return -1 if transaction can't be undone.
  97. */
  98. int xsys_undo(
  99.     void)
  100.  
  101. /*~23/03/91 15.37.06! xsys_batch R */
  102. /*
  103.     Perform one transaction without prompting the user.
  104.     This function assumed a yes to each questions.
  105.  
  106.     The function returns immediatly without waiting for
  107.     the background process to fully complete the transaction. See
  108.     function xsys_flush().
  109. */
  110. int xsys_batch(
  111.     void)
  112.  
  113. /*~23/03/91 15.37.06! xsys_flush R */
  114. /*
  115.     Complete any pending transactions.
  116.  
  117.     This function must be called only in this and this and this
  118.     situation.
  119.  
  120.     Return the number of transactions that has been completed.
  121. */
  122. int xsys_flush(
  123.     void)
  124.  
  125.